package cn.zl.common.util;

import io.netty.channel.Channel;
import io.netty.util.Attribute;

import java.net.InetSocketAddress;

public class ChannelUtils {


    public static String getIp(Channel channel) {
        return ((InetSocketAddress) channel.remoteAddress()).getAddress().toString().substring(1);
    }

}
